package org.shj.pattern.decorator;

public abstract class Decorator extends Component{
	
	protected Component comp;
	
	public void setComponent(Component comp){
		this.comp = comp;
	}
	
	public void operation(){
		if(comp != null){
			comp.operation();
		}
	}

}
